﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;

namespace MVVMComun
{
    public class GuiaCiudadModel
    {
        private FlickerService flickerS;
        private BingService bingS;
        private WeatherService weatherS;


        public FlickerService FlickerS 
        {
            get { return flickerS; }
            set { flickerS = value; }
        }

        public BingService BingS
        {
            get { return bingS; }
            set { bingS = value; }
        }

        public WeatherService WeatherS
        {
            get { return weatherS; }
            set { weatherS = value; }
        }
        
        private string ciudad;

        public string Ciudad
        {
            get { return ciudad; }
            set { ciudad = value; }
        }

        private string pais;

        public string Pais
        {
            get { return pais; }
            set { pais = value; }
        }
        

        
        public GuiaCiudadModel() {

            configUbicacion();
            configServices();
           
        }


        private void configUbicacion()
        {
               
            Ciudad = "Barquisimeto";
            Pais = "Venezuela";
        
        }
        
        private void configFlickerService()
        {
            flickerS = new FlickerService();
        }


        private void configBingService() 
        {
            bingS = new BingService();
        }

        private void configWeatherService() {
            weatherS = new WeatherService();
            weatherS.Pais =Pais;
            weatherS.Ciudad = Ciudad;
        }
        
        
        private void configServices() {
            configFlickerService();
            configBingService();
            configWeatherService();
        }


    }
}
